package com.example.poi.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.poi.entity.TbClass;
import com.example.poi.repository.ClassRepository;

@Service
public class ClassService {
	@Autowired
	private ClassRepository classRepository;
	
	public List<TbClass> findAll(){
		return classRepository.findAll();
	}
}
